package morning.cat.springboot.service;

import morning.cat.springboot.propertie.CatServiceProperties;

/**
 * XXX
 *
 * @author mengzhang6
 * @date 2018/10/17 19:39
 */
public class CatService {

    private CatServiceProperties properties;

    public CatService(CatServiceProperties properties) {
        this.properties = properties;
    }

    public String spleep() {
        return properties.getMimiName() + " is sleep;";
    }

    public String run() {
        return properties.getMimiName() + " is runing;";
    }

    public String mimi() {
        return properties.getMimiName() + "  喵喵;";
    }

    public String sayNo() {
        return properties.getMimiName() + "  no id " + properties.getCatNo();
    }

}
